package com.biz;

import com.dao.ShopcarMapper;
import com.entity.Shopcar;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class IShopcarBizImpl implements IShopcarBiz {

    @Autowired
    private ShopcarMapper dao;

    public ShopcarMapper getDao() {
        return dao;
    }

    public void setDao(ShopcarMapper dao) {
        this.dao = dao;
    }

    @Override
    public List<Shopcar> getAll(Map map) {
        return dao.getAll(map);
    }

    @Override
    public Integer delShopcar(Integer sid) {
       return   dao.delShopcar(sid);
    }

    @Override
    public Integer addShopcar(Shopcar record) {
      return  dao.addShopcar(record);
    }

    @Override
    public Shopcar getById(Integer sid) {
        return dao.getById(sid);
    }

    @Override
    public void modShopcar(Shopcar record) {
        dao.modShopcar(record);
    }

    @Override
    public List<Map> getShopcarByUid(Integer uid) {
        return dao.getShopcarByUid(uid);
    }

    @Override
    public List<Shopcar> getByUidAndBid(Integer uid, Integer bookid) {
        return dao.getByUidAndBid(uid,bookid);
    }

    @Override
    public List<Map> getListByIds(Integer[] ids) {
        return dao.getListByIds(ids);
    }
}
